package com.example.shortmessage.contract;

import com.example.shortmessage.base.BaseAbstractPresenter;
import com.example.shortmessage.base.IBaseView;
import com.example.shortmessage.data.entity.MessageData;

import java.util.List;

public interface MainContract {
    interface View<P extends MainContract.Presenter> extends IBaseView<P> {

    }

    abstract class Presenter<V extends MainContract.View> extends BaseAbstractPresenter<V> {

        public abstract void upData();
        public abstract List<MessageData> loadData(String read);
    }

    interface Model {
        /**
         *
         * @param read "0","1"
         * @return List<>
         */
        List<MessageData> choose(String read);
    }
}
